package ua.nure.nguyen.bookstore.web.db.entity;

public class Book extends Entity {
	private long id;
	private String title;
	private String author;

	public Book(long id) {
		this.id = id;
	}

	public Book(String title, String author) {
		this.title = title;
		this.author = author;
	}

	public Book(long id, String title, String author) {
		this(title, author);
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", title=" + title + ", author=" + author
				+ "]";
	}

}
